package org.design.hotdevelop.controller;

import jakarta.annotation.Resource;
import org.design.hotdevelop.register.LoadBeanService;
import org.springframework.web.bind.annotation.*;

/**
 * @description:
 * @author: freedom
 * @date: 2024/9/25
 **/
@RestController
@RequestMapping("/source")
public class HandlerController {

    @Resource
    private LoadBeanService loadBeanService;

    @PostMapping("/code")
    public void code (@RequestParam(name = "code") String code) {
        //解析类
        loadBeanService.loadSource(code);
    }

}
